package main

import (
	"github.com/julienschmidt/httprouter"
	"net/http"
	"video_server/scheduler/taskrunner"
)

func RegiserHandlers() *httprouter.Router  {
	router:= httprouter.New()
	router.GET("/video-delete-record/:vid-id",vidDelRecHandler)
	return  router
}
func main()  {
	c := make(chan int)
	go taskrunner.Start()
	r := RegiserHandlers()
	http.ListenAndServe(":9001",r)
	<- c
}